<?php

return [
    'vendorPath' => dirname(dirname(__DIR__)) . '/vendor',
    'components' => [
        'request' => [
            // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
            'cookieValidationKey' => 'mysoft',
            'parsers' => [
                'application/json' => 'yii\web\JsonParser',
                'text/json' => 'yii\web\JsonParser',
            ],
        ],
        'errorHandler' => [
            'errorAction' => 'site/error',
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
            'viewPath' => '@common/mail',
            // send all mails to a file by default. You have to set
            // 'useFileTransport' to false and configure a transport
            // for the mailer to send real emails.
            'useFileTransport' => false,
			 'transport' => [  
                                   'class' => 'Swift_SmtpTransport',  
                                   'host' => 'smtp.exmail.qq.com',  
                                   'username' => 'mycaigou@mycaigou.com',
                                   'password' => '7X68085vNgdYVF60',
                                   'port' => '25',
                                   
                           ],   
           'messageConfig'=>[  
               'charset'=>'UTF-8',
               'from'=>['mycaigou@mycaigou.com'=>'mycaigou']
               ],  
        ],
    ],
];
